﻿@model Angel.Web.Models.AddModel

@{
    ViewBag.Title = "AddUser";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<head>
    <link href="../../Content/themes/viewUser.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="wrapper">
    @using (Html.BeginForm())
    {
			<fieldset>
				<legend>Create New User</legend>
					<div>
						<label for="name">Username <span>*</span></label>
                        @Html.TextBoxFor(u => u.UserName)
                        @Html.ValidationMessageFor(u => u.UserName)

					</div>
					
					<div>
						<label for="email">Password</label>
						@Html.PasswordFor(u => u.Password)
                        
						<label for="priviate">
						If you do not enter a password, one will be generated automatically.
						</label>
					</div>
					
					<div>
						<label for="website">Confirm</label>
						@Html.PasswordFor(u => u.ConfirmPassword)
                        @Html.ValidationMessageFor(u => u.ConfirmPassword)
					</div>
					<div>
						<label for="website">Full name<span>*</span></label>
						@Html.TextBoxFor(u => u.fullName)
                        @Html.ValidationMessageFor(u => u.fullName)
					</div>
					<div>
						<label for="website">Email<span>*</span></label>
						@Html.TextBoxFor(u => u.Email)
                        @Html.ValidationMessageFor(u => u.Email)					
						<label for="priviate">
						@Html.CheckBoxFor(u => u.sendNotify)
						Send Notification Email
						<br>
						Send an email to the user you have just created, which will allow them to set up their password (if applicable).

					</div>
					<div id="bt">
                        <input type="submit" name="submit" value="Confirm" class="button" />
                        @Html.ActionLink("Cancel","Index","User")	
                    </div>
					<div>
					

			</fieldset>
    }

        <p>@ViewBag.MessageErr</p>
	</div><!--end wrapper-->

</body>
